function validatemBody (rule,value,callback,data,param) {
    if (!value) {
        return callback(new Error("请输入金额"))
     }else if(!(/^\d+(\.\d{1,2})?$/.test(value))){
        return callback(new Error("非负数且最多两位小数"));
     }else if (rule.field==param.index) {
         if(Number(data[1].value)<=Number(data[0].value)) {
             return callback(new Error("二阶必须大于一阶金额"));
         }else{
             callback();
         }
     }else if (rule.field==param.index1){
         if(Number(data[2].value)<=Number(data[1].value)) {
             return callback(new Error("三阶必须大于二阶金额"));
         }else {
             callback();
         }
     }else {
         callback();
     }
}
export {validatemBody}